<?php

namespace App\Models;


use Illuminate\Database\Eloquent\Model;

class WorkOrderComponent extends Model
{
	
    protected $table = 'work_order_components';

    protected $fillable = [
        'work_order_id',
        'component_maintenance_id',
        'type',
        'title',
        'position_type',
        'standard_quantity_base',
        'performance_quantity_base',
        'standard_working_base',
        'performance_working_base',
        'damage_level_type',
        'damage_coefficient'
    ];

    public function workOrder()
    {
        return $this->belongsTo(WorkOrder::class);
    }
}
